package decorator;

import factory_method.Circle;
import factory_method.Rectangle;
import factory_method.Shape;
import factory_method.Triangle;

public class DecoratorPatternDemo {
	public static void main(String[] argStrings) {
		Shape circle = new Circle();
		circle.draw();
		System.out.println();
		
		Shape rectangle = new RedShapeDecorator(new BlueFillDecorator(
				new Rectangle()));
		rectangle.draw();
		System.out.println();

		Shape triangleShape = new RedShapeDecorator(new BlueFillDecorator(
				new YellowShadowDecorator(new Triangle())));
		triangleShape.draw();
	}
}
